package bean

import "fmt"

type MyMath struct {
}

func (myMath *MyMath) Add(param Param, sum *int) error  {
	*sum = param.Anum + param.Bnum
	return nil
}



//func (myMath *MyMath) Sub(param *Param) int {
//	return a - b
//}
//func (myMath *MyMath) Chen(param *Param) int {
//	return a * b
//}
func (myMath *MyMath) Div(param Param, data *ResponseData) error {
	data.Shang = param.Anum / param.Bnum
	data.Yushu = param.Anum % param.Bnum

	fmt.Println(data)
	return nil
}


type Param struct {
	Anum int
	Bnum int
}

type ResponseData struct {
	Shang int
	Yushu int
}

type MySort struct {
}

func (mySort *MySort) sort() error {

	return nil
}
